<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS特性-优先级</title>
    <style>
         div{
            color: blue;

        }
        * {
            /* !important 添加权重比 优先级提高最高 慎用 */
            color: red !important;
        }
         .box{
            color: blue;
        }
        #test{
            color: orange;
        }
    </style>
</head>
<body>
    <div class="box" id="test" style="color: purple;">div 标签</div>
</body>
</html>